WPDesk\ShopMagicCart\Interceptor\CartInterceptor S

Total Complexity 41
Dependencies 9
Dependents 1
Total lines 207
Lines of code 137
Logical lines of code 84
Comment lines 34
Methods 14
Properties 4

Methods 14

Method Rating Maintainability Complexity Lines of code
should_save_cart()
A
53 10 24
save_cart()
S
56 5 17
sync_cart_with_order()
S
61 4 12
trigger_update_on_cart_and_checkout_pages()
S
66 4 9
retrieve_synced_cart()
S
60 3 14
get_tracking_key()
S
65 3 9
hooks()
S
58 1 15
set_changed_into_cookie()
S
73 2 5
set_changed_from_cookie()
S
71 2 6
empty_cart()
S
69 2 7
store_tracking_key()
S
71 2 6
__construct()
S
74 1 5
separate_cart_from_session()
S
73 1 5
set_changed()
S
81 1 3